#apt换源
sudo sh -c "echo 'deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse' > /etc/apt/sources.list" && \
sudo sh -c "echo 'deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list" && \
sudo sh -c "echo 'deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse' >> /etc/apt/sources.list" && \
sudo sh -c "echo 'deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse' >> /etc/apt/sources.list" && \
sudo apt update

#pip换源
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

#git
sudo apt-get install git -y
git init
git remote add origin https://gitee.com/luo_zhi_cheng/mdvc.git

#dvc
pip3 install dvc -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install dvc[s3] -i https://pypi.tuna.tsinghua.edu.cn/simple
dvc init

remote_name=btMinio
oss_end_point="http://minio.bangtu-internal.com:9000"
oss_access_key=miniotest
oss_secret_key=Bangtu@testminio888
oss_bucket_name=model
oss_subdir_name=chuwei
dvc remote add -d ${remote_name} s3://${oss_bucket_name}/${oss_subdir_name} -f
dvc remote modify ${remote_name} endpointurl ${oss_end_point}
dvc remote modify ${remote_name} access_key_id ${oss_access_key}
dvc remote modify ${remote_name} secret_access_key ${oss_secret_key}

#最外层的文件夹
mkdir -p LLM VLM CV
touch ./.gitignore
